<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoGradientPattern class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairopattern.status.html">CairoPattern::status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairogradientpattern.addcolorstoprgb.html">CairoGradientPattern::addColorStopRgb</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairogradientpattern" class="reference">

 <h1 class="title">The CairoGradientPattern class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL cairo &gt;= 0.1.0)</p>


  <div class="section" id="cairogradientpattern.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    <strong class="classname">CairoGradientPattern</strong> is an abstract base class from which other Pattern classes derive.
    It cannot be instantiated directly.
   </p>
  </div>


  <div class="section" id="cairogradientpattern.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoGradientPattern</strong>
     </span>
     
     <span class="ooclass">
      <span class="modifier">extends</span>
      <a href="class.cairopattern.html" class="classname">CairoPattern</a>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairogradientpattern.addcolorstoprgb.html" class="methodname">addColorStopRgb</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$offset</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$blue</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairogradientpattern.addcolorstoprgba.html" class="methodname">addColorStopRgba</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$offset</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$blue</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$alpha</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairogradientpattern.getcolorstopcount.html" class="methodname">getColorStopCount</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="cairogradientpattern.getcolorstoprgba.html" class="methodname">getColorStopRgba</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$index</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairogradientpattern.getextend.html" class="methodname">getExtend</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairogradientpattern.setextend.html" class="methodname">setExtend</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$extend</code></span>
   )</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="cairopattern.construct.html" class="methodname">CairoPattern::__construct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairopattern.getmatrix.html" class="methodname">CairoPattern::getMatrix</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairopattern.gettype.html" class="methodname">CairoPattern::getType</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairopattern.setmatrix.html" class="methodname">CairoPattern::setMatrix</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$matrix</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="cairopattern.status.html" class="methodname">CairoPattern::status</a></span>
    ( <span class="methodparam">void</span>
    )</div>


   }</div>


  </div>

 </div>

 











































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="cairogradientpattern.addcolorstoprgb.html">CairoGradientPattern::addColorStopRgb</a> — The addColorStopRgb purpose</li><li><a href="cairogradientpattern.addcolorstoprgba.html">CairoGradientPattern::addColorStopRgba</a> — The addColorStopRgba purpose</li><li><a href="cairogradientpattern.getcolorstopcount.html">CairoGradientPattern::getColorStopCount</a> — The getColorStopCount purpose</li><li><a href="cairogradientpattern.getcolorstoprgba.html">CairoGradientPattern::getColorStopRgba</a> — The getColorStopRgba purpose</li><li><a href="cairogradientpattern.getextend.html">CairoGradientPattern::getExtend</a> — The getExtend purpose</li><li><a href="cairogradientpattern.setextend.html">CairoGradientPattern::setExtend</a> — The setExtend purpose</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="cairopattern.status.html">CairoPattern::status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairogradientpattern.addcolorstoprgb.html">CairoGradientPattern::addColorStopRgb</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
